//
//  Originator.h
//  备忘录模式
//
//  Created by flannery on 2018/12/19.
//  Copyright © 2018年 flannery. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Memento.h"

@interface Originator : NSObject
-(instancetype)initWithState:(NSString*)state;
-(void)setState:(NSString*)state;
-(NSString*)getState;
-(Memento*)saveStateToMemento;
-(void)getStateFromMemento:(Memento*)memento;
@end
